<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="通知公告" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="addData()"
                            ng-disabled="!btnPermission.noticeBulletinAdd"
                            translate translate-attr-title="{{!btnPermission.noticeBulletinAdd?'无权限执行此操作':''}}">新增</button>
                    <button class="btn btn-operate m-r-sm" ng-click="delBatch()"
                            ng-disabled="!btnPermission.noticeBulletinDel"
                            translate translate-attr-title="{{!btnPermission.noticeBulletinDel?'无权限执行此操作':''}}">删除</button>
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" translate translate-attr-title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" translate translate-attr-title="配置表格列"
                                ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')" translate-attr-title="高级搜索" translate="高级搜索more"></button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" ng-model="condition.title" translate translate-attr-placeholder="公告标题">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)" translate>搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)" reset-data="reset()" date-picker="true"  hide-date="switchDataPicker()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>公告标题</span>：</label>
                        <input type="text" name="title" ng-model="condition.title" class="form-control">
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tbConf" col-fixed="true"
                 has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tbConf.fixedWidth}}">
                            <thead>
                            <tr>
                                <th width="40" class="th-check text-center border-l-none">
                                    <div yb-check-box yb-checked="markInfo.allCheckedBill" yb-click="selectAll(dataList, 'Bill')"></div>
                                </th>
                                <th ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-click="toSort(tableConfig.tableCol, $index)"
                                    ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                    <div yb-thead-operate ng-model="itemCol" target-width="tbConf.fixedWidth" fixed-width="tbStyle.fixedWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.fixedWidth">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-click="toSort(tbConf.tableCol, $index)" ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                    <div yb-thead-operate ng-model="itemCol" target-width="tbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y">
                        <table class="table-fixed border-none" width="{{tbConf.fixedWidth}}">
                            <tbody>
                            <tr ng-repeat="item in dataList track by $index" ng-click="selectRow($index)"
                                ng-class="{'row-selected': $index === markInfo.curRow}">
                                <td width="40" class="text-center border-l-none">
                                    <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item, dataList, 'Bill')"></div>
                                </td>
                                <td class="spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-show="!!itemCol.isShow && !!itemCol.isFixed" title="{{item[itemCol.dataField]}}">
                                    <div class="font-0" ng-if="itemCol.type === 'operate'">
                                        <button class="btn btn-operate m-r-xs"
                                                ng-disabled="!btnPermission.noticeBulletinEdit"
                                                translate translate-attr-title="{{!btnPermission.noticeBulletinEdit?'无权限执行此操作':''}}"
                                                ng-click="editData(item)">编辑</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="delSign(item.id)"
                                                ng-disabled="!btnPermission.noticeBulletinDel"
                                                translate translate-attr-title="{{!btnPermission.noticeBulletinDel?'无权限执行此操作':''}}">删除</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="auth(item.id, 'dealer')"
                                                ng-disabled="item.authDealerAll === 1 || !btnPermission.noticeBulletinEdit"
                                                translate translate-attr-title="{{!btnPermission.noticeBulletinEdit?'无权限执行此操作':''}}">配置客户</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="auth(item.id, 'user')"
                                                ng-disabled="item.authUserAll === 1 || !btnPermission.noticeBulletinEdit"
                                                translate translate-attr-title="{{!btnPermission.noticeBulletinEdit?'无权限执行此操作':''}}">配置用户</button>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.fixedWidth">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in dataList track by $index" ng-click="selectRow($index)"
                                ng-class="{'row-selected': $index === markInfo.curRow}" >
                                <td class="spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                    title="{{item[itemCol.dataField]}}">
                                    <span ng-if="!itemCol.clickFn || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                    <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] == '同步失败')">
                                        {{item[itemCol.dataField]}}
                                    </a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allCheckedBill" yb-check-name="全选"
                     yb-click="selectAll(dataList, 'Bill')"></div>
                <button class="btn btn-operate m-r-sm" ng-click="delBatch()" translate
                        ng-disabled="!btnPermission.noticeBulletinDel" title="{{!btnPermission.noticeBulletinDel?'无权限执行此操作':''}}">删除</button>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>

        <div tab heading="{{tabFlag.name}}" active="activeFlag[1]" ng-click="changeTab(1)" ng-if="activeFlag[1]">
            <form name="form" class="form-horizontal wrapper-md clearfix" novalidate>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i>*</i><span translate>公告标题</span>：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" name="title" class="form-control light-bg" ng-model="detailInfo.title"
                              required yb-focus maxlength="100">
                    </div>
                    <div class="col-xs-4 msg-block"
                         ng-show="form.title.$dirty || (form.title.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.title.$error.required && !form.title.focused">
                            <i class="yb-icon ico-times-circular"></i><span translate>必填项，请填写</span>
                        </div>
                    </div>
                </div>
                <div class="form-group m-b-sm">
                    <label class="col-xs-2 control-label"><span translate>是否置顶</span>：</label>
                    <label class="col-xs-5 control-label p-l-n text-left clearfix">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                               ng-model="detailInfo.isHeader" value="1"
                               yb-radio-name="是">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                               ng-model="detailInfo.isHeader" value="0"
                               yb-radio-name="否">
                    </label>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label"><i>*</i><span translate>类型</span>：</label>
                    <div class="col-xs-5 wrapper-none">
                        <div dictionary-selector ng-model="detailInfo.typeName" sel-key="GGLX" sel-code="detailInfo.type">
                            <input type="text" name="typeName" class="form-control light-bg" ng-model="detailInfo.typeName"
                                   placeholder="请选择" required readonly yb-focus>
                        </div>
                    </div>
                    <div class="col-xs-4 msg-block"
                         ng-show="form.typeName.$dirty || (form.typeName.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.typeName.$error.required && !form.typeName.focused">
                            <i class="yb-icon ico-times-circular"></i><span translate>必填项，请填写</span>
                        </div>
                    </div>
                </div>

                <div class="form-group m-b-sm" ng-if="detailInfo.typeName==='促销活动'">
                    <label class="col-xs-2 control-label"><span translate>是否显示</span>：</label>
                    <label class="col-xs-5 control-label p-l-n text-left clearfix">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                               ng-model="detailInfo.isShow" value="1"
                               yb-radio-name="是">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                               ng-model="detailInfo.isShow" value="0"
                               yb-radio-name="否">
                    </label>
                </div>

                <div class="form-group m-b-sm">
                    <label class="col-xs-2 control-label"><span translate>是否对所有客户展示</span>：</label>
                    <label class="col-xs-5 control-label p-l-n text-left clearfix">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                               ng-model="detailInfo.authDealerAll" value="1"
                               yb-radio-name="是">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                               ng-model="detailInfo.authDealerAll" value="0"
                               yb-radio-name="否">
                    </label>
                </div>

                <div class="form-group m-b-sm">
                    <label class="col-xs-2 control-label"><span translate>是否对所有用户展示</span>：</label>
                    <label class="col-xs-5 control-label p-l-n text-left clearfix">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                               ng-model="detailInfo.authUserAll" value="1"
                               yb-radio-name="是">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                               ng-model="detailInfo.authUserAll" value="0"
                               yb-radio-name="否">
                    </label>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label"><i>*</i><span translate>开始时间</span>：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control date-picker" ng-model="detailInfo.validateStart" name="validateStart"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)" is-open="datePickerFlag[0]" close-text="关闭"
                               ng-change="checkDate(detailInfo, 'validateStart', 'validateEnd')" readonly required>
                    </div>
                    <div class="col-xs-4 msg-block"
                         ng-show="form.validateStart.$dirty || (form.validateStart.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.validateStart.$error.required && !form.validateStart.focused">
                            <i class="yb-icon ico-times-circular"></i><span translate>必填项，请填写</span>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label"><i>*</i><span translate>结束时间</span>：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" name="validateEnd" class="form-control date-picker" ng-model="detailInfo.validateEnd"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)" is-open="datePickerFlag[1]" close-text="关闭"
                               ng-change="checkDate(detailInfo, 'validateStart', 'validateEnd')" readonly required>
                    </div>
                    <div class="col-xs-4 msg-block"
                         ng-show="form.validateEnd.$dirty || (form.validateEnd.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.validateEnd.$error.required && !form.validateEnd.focused">
                            <i class="yb-icon ico-times-circular"></i><span translate>必填项，请填写</span>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label"><i>*</i><span translate>链接</span>：</label>
                    <div class="input-group col-xs-5 pull-left wrapper-none">
                        <span class="input-group-addon" id="basic-addon3">http://</span>
                        <input type="text" name="blank" class="form-control light-bg" ng-model="detailInfo.click" id="basic-url" aria-describedby="basic-addon3"
                               required yb-focus  maxlength="150">
                    </div>


                    <div class="col-xs-2 msg-block "
                         ng-show="form.blank.$dirty || (form.blank.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.blank.$error.required && !form.blank.focused">
                            <i class="yb-icon ico-times-circular"></i><span translate>必填项，请填写</span>
                        </div>
                    </div>
                </div>


                <div class="form-group">
                    <label class="col-xs-2 control-label"><i  ng-if="detailInfo.typeName!=='促销活动'">*</i><span translate>公告内容</span>：</label>
                    <div class="col-xs-5 wrapper-none"  ng-if="detailInfo.typeName!=='促销活动'">
                        <div ckeditor name="content" required ng-model="detailInfo.body" ready="onReady()"></div>
                    </div>

                    <div class="col-xs-5 wrapper-none"  ng-if="detailInfo.typeName==='促销活动'">
                        <div ckeditor name="content" ng-model="detailInfo.body" ready="onReady()"></div>
                    </div>

                    <div class="col-xs-4 msg-block"
                         ng-show="(form.content.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.content.$error.required && !form.content.focused">
                            <i class="yb-icon ico-times-circular"></i><span translate>必填项，请填写</span>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label"><span translate>添加附件</span>：</label>
                    <div class="col-xs-5 wrapper-none" style="width:70%">
                        <div>
                            <ul class="enclosureList">
                                <li ng-repeat="item in detailInfo.basicAttachmentList">
                                    <p class="one-row"><span translate>文件名</span>:</p>
                                    <p class="two-row">{{item.name}}</p>

                                    <div>
                                        <button class="btn btn-link btn-xs" ng-click="delEnclosure($index)">
                                            <i class="glyphicon glyphicon-trash"></i>
                                        </button>
                                    </div>
                                </li>
                                <li class="addEnclosure" ng-if="detailInfo.basicAttachmentList.length<20">
                                    <a ngf-select="uploadDoc($file,0)">
                                        <i class="glyphicon glyphicon-plus"></i>
                                        <br>
                                        <span translate>添加附件</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>

                <div class="form-group m-b-sm">
                    <label class="col-xs-2 control-label"><span translate>是否允许下载附件</span>：</label>
                    <label class="col-xs-5 control-label p-l-n text-left clearfix">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                               ng-model="detailInfo.isDownload" value="1"
                               yb-radio-name="是">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                               ng-model="detailInfo.isDownload" value="0"
                               yb-radio-name="否">
                    </label>
                </div>

                <div class="form-group">
                    <div class="col-xs-offset-2">
                        <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(form.$valid,form)" translate>保存</button>
                        <button type="button" class="btn btn-default" ng-click="changeTab(0)" translate>取消</button>
                    </div>
                </div>
            </form>

        </div>

        <div tab heading="详情" active="activeFlag[2]" ng-if="activeFlag[2]">
            <div class="main-area d-t-35 d-b-60">
                <form name="detailForm" class="main-wrap form-horizontal single-col p-t-xs clearfix" novalidate>
                    <div class="clearfix">
                        <div class="form-group m-b-none">
                            <label class="col-xs-2 control-label"><span translate>公告标题</span>：</label>
                            <div class="col-xs-8 control-label text-left">
                                {{detailObj.title || "-"}}
                            </div>
                        </div>
                        <div class="form-group m-b-none">
                            <label class="col-xs-2 control-label"><span translate>是否置顶</span>：</label>
                            <div class="col-xs-8 control-label text-left">
                                {{detailObj.isHeader===0?'否':'是'}}
                            </div>
                        </div>
                        <div class="form-group m-b-none">
                            <label class="col-xs-2 control-label"><span translate>类型</span>：</label>
                            <div class="col-xs-8 control-label text-left">
                                {{detailObj.typeName || "-"}}
                            </div>
                        </div>
                        <div class="form-group m-b-none">
                            <label class="col-xs-2 control-label"><span translate>开始时间</span>：</label>
                            <div class="col-xs-8 control-label text-left">
                                {{detailObj.validateStart|YbDate}}
                            </div>
                        </div>
                        <div class="form-group m-b-none">
                            <label class="col-xs-2 control-label"><span translate>结束时间</span>：</label>
                            <div class="col-xs-8 control-label text-left">
                                {{detailObj.validateEnd|YbDate}}
                            </div>
                        </div>
                        <div class="form-group m-b-none">
                            <label class="col-xs-2 control-label"><span translate>链接</span>：</label>
                            <div class="col-xs-8 control-label text-left">
                                {{detailObj.click || "-"}}
                            </div>
                        </div>
                        <div class="form-group m-b-none">
                            <label class="col-xs-2 control-label"><span translate>附件</span>：</label>
                            <div class="col-xs-2 control-label text-left" style="width: 220px" ng-repeat="item in detailInfo.basicAttachmentList">
                                {{item.name}}
                                <a ng-if="detailObj.isDownload===1" ng-click="downloadAttach(item)" style="margin-left:6px;" class="btn-operate" translate>下载</a>
                                <a ng-click="previewAttach(item)" style="margin-left:6px;" class="btn-operate" title="非pdf格式文件将直接下载" translate>预览</a>
                            </div>
                        </div>
                        <div class="form-group m-b-none">
                            <label class="col-xs-2 control-label"><span translate>是否允许下载附件</span>：</label>
                            <div class="col-xs-8 control-label text-left">
                                {{detailObj.isDownload===0?'否':'是'}}
                            </div>
                        </div>
                        <div class="form-group m-b-none">
                            <label class="col-xs-2 control-label"></label>
                            <div class="col-xs-8 control-label text-left">
                                ----------------------------------------------
                            </div>
                        </div>

                        <div class="form-group m-b-none">
                            <label class="col-xs-2 control-label"><span translate>公告内容</span>：</label>
                            <div class="col-xs-8 control-label text-left" ng-bind-html="detailObj.body|ybTrustHtml">
                            </div>
                        </div>

                        <div class="form-group m-b-none" ng-if="detailObj.orgId === curOrgId">
                            <label class="col-xs-2 control-label"><span translate>收件客户</span>：</label>
                            <div class="col-xs-8 control-label text-left">
                                <span ng-repeat="item in detailObj.dealerNames" style="margin-right: 10px;">
                                    {{item}}
                                </span>
                            </div>
                        </div>
                        <div class="form-group m-b-none" ng-if="detailObj.orgId === curOrgId">
                            <label class="col-xs-2 control-label"><span translate>收件用户</span>：</label>
                            <div class="col-xs-8 control-label text-left">
                                <span ng-repeat="item in detailObj.userNames" style="margin-right: 10px;">
                                    {{item}}
                                </span>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="bottom-area btn-bar single-col border-t clearfix">
                <button type="button" class="btn btn-default" ng-click="changeTab(0)" translate>返回</button>
            </div>
        </div>

        <div tab heading="配置客户" active="activeFlag[3]" ng-if="activeFlag[3]">
            <div class="row wrapper-y-sm">
                <div class="search-bar wrapper-none col-xs-8" style="width: 100%;">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" translate translate-attr-title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" translate translate-attr-title="配置表格列"
                                ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')" translate-attr-title="高级搜索" translate="高级搜索more"></button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" ng-model="conditionDealer.dealerOrgName" translate translate-attr-placeholder="客户名称">
                        <span class="input-group-addon cursor-pointer" ng-click="searchDealer(1)" translate>搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="searchDealer(1)" reset-data="resetDealer()" date-picker="true"  hide-date="switchDataPicker()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>客户名称</span>：</label>
                        <textarea ng-model="conditionDealer.dealerOrgNames" class="form-control" translate translate-attr-placeholder="逗号分隔或者换行分隔"></textarea>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>客户编码</span>：</label>
                        <input type="text" class="form-control" translate translate-attr-placeholder="客户编码" ng-model="conditionDealer.dealerOrgCode">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>客户分类</span>：</label>
                        <div class="selection">
                            <select class="form-control" ng-model="conditionDealer.dealerClassName"
                                    ng-options="clientSort.className as clientSort.className for clientSort in clientSortList">
                                <option value="" translate>请选择</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tbDealerConf" col-fixed="true"
                 has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tbDealerConf.fixedWidth}}">
                            <thead>
                            <tr>
                                <th width="40" class="th-check text-center border-l-none">
                                    <div yb-check-box yb-checked="markInfo.allCheckedDealer" yb-click="selectAll(dealerDataList, 'Dealer')"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbDealerStyle.fixedWidth">
                        <table class="table-fixed border-none" width="{{tbDealerConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in tbDealerConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-click="toSort(tbDealerConf.tableCol, $index)" ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                    <div yb-thead-operate ng-model="itemCol" target-width="tbDealerConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dealerDataList.length > 0" >
                        <table class="table-fixed border-none" width="{{tbDealerConf.fixedWidth}}">
                            <tbody>
                            <tr ng-repeat="item in dealerDataList track by $index" ng-click="selectRow($index)"
                                ng-class="{'row-selected': $index === markInfo.curRow}">
                                <td width="40" class="text-center border-l-none">
                                    <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item, dealerDataList, 'Dealer')"></div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dealerDataList.length > 0" ng-style="tbDealerStyle.fixedWidth">
                        <table class="table-fixed border-none" width="{{tbDealerConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in dealerDataList track by $index" ng-click="selectRow($index)"
                                ng-class="{'row-selected': $index === markInfo.curRow}" >
                                <td class="spill-dots" ng-repeat="itemCol in tbDealerConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                    title="{{item[itemCol.dataField]}}">
                                    <span ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                    <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] == '同步失败')">
                                        {{item[itemCol.dataField]}}
                                    </a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dealerDataList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <button type="button" style="margin-left: 40%;" class="btn btn-primary m-r-sm" ng-disabled="!isModify" ng-click="saveAuth('dealer')" translate>保存</button>
                <span style="color: red;" translate>只能保存本页面修改</span>
                <div yb-page-info ng-model="customerPageInfo" yb-refresh="searchDealerPre()" is-modify="isModify"></div>
            </div>
        </div>

        <div tab heading="配置用户" active="activeFlag[4]" ng-if="activeFlag[4]">
            <div class="row wrapper-y-sm">
                <div class="search-bar wrapper-none col-xs-8" style="width: 100%;">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" translate translate-attr-title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" translate translate-attr-title="配置表格列"
                                ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')" translate-attr-title="高级搜索" translate="高级搜索more"></button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" ng-model="conditionUser.userName" translate translate-attr-placeholder="用户名称">
                        <span class="input-group-addon cursor-pointer" ng-click="searchUser(1)" translate>搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="searchUser(1)" reset-data="resetUser()" date-picker="true"  hide-date="switchDataPicker()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>用户名称</span>：</label>
                        <textarea ng-model="conditionUser.userNames" class="form-control" translate translate-attr-placeholder="逗号分隔或者换行分隔"></textarea>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>所属机构</span>：</label>
                        <input type="text" class="form-control" translate translate-attr-placeholder="所属机构" ng-model="conditionUser.dept">
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tbUserConf" col-fixed="true"
                 has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tbUserConf.fixedWidth}}">
                            <thead>
                            <tr>
                                <th width="40" class="th-check text-center border-l-none">
                                    <div yb-check-box yb-checked="markInfo.allCheckedUser" yb-click="selectAll(userDataList, 'User')"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbUserStyle.fixedWidth">
                        <table class="table-fixed border-none" width="{{tbUserConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in tbUserConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-click="toSort(tbUserConf.tableCol, $index)" ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                    <div yb-thead-operate ng-model="itemCol" target-width="tbUserConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="userDataList.length > 0" >
                        <table class="table-fixed border-none" width="{{tbUserConf.fixedWidth}}">
                            <tbody>
                            <tr ng-repeat="item in userDataList track by $index" ng-click="selectRow($index)"
                                ng-class="{'row-selected': $index === markInfo.curRow}">
                                <td width="40" class="text-center border-l-none">
                                    <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item, userDataList, 'User')"></div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="userDataList.length > 0" ng-style="tbUserStyle.fixedWidth">
                        <table class="table-fixed border-none" width="{{tbUserConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in userDataList track by $index" ng-click="selectRow($index)"
                                ng-class="{'row-selected': $index === markInfo.curRow}" >
                                <td class="spill-dots" ng-repeat="itemCol in tbUserConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                    title="{{item[itemCol.dataField]}}">
                                    <span ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                    <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] == '同步失败')">
                                        {{item[itemCol.dataField]}}
                                    </a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="userDataList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <button type="button" style="margin-left: 40%;" class="btn btn-primary m-r-sm" ng-disabled="!isModify" ng-click="saveAuth('user')" translate>保存</button>
                <span style="color: red;" translate>只能保存本页面修改</span>
                <div yb-page-info ng-model="userPageInfo" yb-refresh="searchUser()" is-modify="isModify"></div>
            </div>
        </div>
    </div>
</div>